import plugin from "../../lib/plugins/plugin.js";
export class example extends plugin {
    constructor() {
        super({
            name: "插件模板",
            dsc: "一个简单的插件模板",
            event: "message",
            priority: 5000,
            rule: [
                {
                    reg: "^#?(插件模板|cj)",
                    fnc: "cjmb",
                },
            ],
        });
    }
    async cjmb(e) {
        console.log(e);
        return;
    }
}


/**
 * e的值参考：
 * {
 *   bot: QQRedBot {
 *     bot: {
 *       host: '127.0.0.1',
 *       port: '16530',
 *       token: '058afccc806321f56156b5c829634eb9f0a5d9294dd8518ef16f73c2fd68cc26',
 *       sendApi: [AsyncFunction (anonymous)],
 *       info: [Object],
 *       nickname: '小草草',
 *       self_id: 2796418420,
 *       uin: 2796418420,
 *       ws: [WebSocket],
 *       send: [Function (anonymous)]
 *     },
 *     self_id: '88888',
 *     nickname: '小草草',
 *     adapter: { id: 'QQ', name: 'chronocat' },
 *     avatar: 'https://q1.qlogo.cn/g?b=qq&s=0&nk=2796418420',
 *     ws: WebSocket {
 *       _events: [Object: null prototype],
 *       _eventsCount: 3,
 *       _maxListeners: undefined,
 *       _binaryType: 'nodebuffer',
 *       _closeCode: 1006,
 *       _closeFrameReceived: false,
 *       _closeFrameSent: false,
 *       _closeMessage: <Buffer >,
 *       _closeTimer: null,
 *       _extensions: {},
 *       _paused: false,
 *       _protocol: '',
 *       _readyState: 1,
 *       _receiver: [Receiver],
 *       _sender: [Sender],
 *       _socket: [Socket],
 *       _bufferedAmount: 0,
 *       _isServer: false,
 *       _redirects: 0,
 *       _url: 'ws://127.0.0.1:16530/',
 *       _req: null,
 *       [Symbol(kCapture)]: false
 *     },
 *     sendApi: [AsyncFunction (anonymous)],
 *     uin: 2796418420,
 *     uid: 'u_6HA2YjFrVV6JXRsXwfvnWA',
 *     stat: { start_time: 1700379608.242, recv_msg_cnt: 1766 },
 *     version: {
 *       version: '0.0.52',
 *       name: 'chronocat',
 *       authData: [Object],
 *       id: 'QQ'
 *     },
 *     fl: Map(41) {
 *       66600000 => [Object],
 *       157456363 => [Object],
 *       335531467 => [Object],
 *       377178599 => [Object],
 *       514716181 => [Object],
 *       692638520 => [Object],
 *       732120961 => [Object],
 *       792529783 => [Object],
 *       857521329 => [Object],
 *       1143299394 => [Object],
 *       1150962447 => [Object],
 *       1480142466 => [Object],
 *       1575809404 => [Object],
 *       1765093974 => [Object],
 *       1912900342 => [Object],
 *       1946284506 => [Object],
 *       2280162705 => [Object],
 *       2369057967 => [Object],
 *       2399691551 => [Object],
 *       2701857849 => [Object],
 *       2711240570 => [Object],
 *       2750287238 => [Object],
 *       2796418420 => [Object],
 *       2798046744 => [Object],
 *       2843238690 => [Object],
 *       2919085056 => [Object],
 *       3014518835 => [Object],
 *       3049849275 => [Object],
 *       3105665032 => [Object],
 *       3134341839 => [Object],
 *       3148076080 => [Object],
 *       3153665897 => [Object],
 *       3236152196 => [Object],
 *       3239727840 => [Object],
 *       3330902026 => [Object],
 *       3433658978 => [Object],
 *       3588625495 => [Object],
 *       3589722350 => [Object],
 *       3593556635 => [Object],
 *       3627405510 => [Object],
 *       3635684830 => [Object]
 *     },
 *     gl: Map(14) {
 *       202744403 => [Object],
 *       226144628 => [Object],
 *       286457894 => [Object],
 *       450977050 => [Object],
 *       472455609 => [Object],
 *       696094095 => [Object],
 *       705935800 => [Object],
 *       722984317 => [Object],
 *       748805900 => [Object],
 *       758066450 => [Object],
 *       774047943 => [Object],
 *       789855336 => [Object],
 *       831768633 => [Object],
 *       1065095037 => [Object]
 *     },
 *     gml: Map(14) {
 *       202744403 => Map(0) {},
 *       226144628 => Map(0) {},
 *       286457894 => Map(0) {},
 *       450977050 => [Map],
 *       472455609 => [Map],
 *       696094095 => [Map],
 *       705935800 => Map(0) {},
 *       722984317 => Map(0) {},
 *       748805900 => [Map],
 *       758066450 => [Map],
 *       774047943 => Map(0) {},
 *       789855336 => [Map],
 *       831768633 => Map(0) {},
 *       1065095037 => [Map]
 *     },
 *     getConfig: {
 *       '450977050': true,
 *       '472455609': true,
 *       '696094095': true,
 *       '748805900': true,
 *       '758066450': true,
 *       '789855336': true,
 *       '1065095037': true
 *     }
 *   },
 *   post_type: 'message',
 *   user_id: 377178599,
 *   message_id: '7303193079631596370',
 *   time: 1700407146,
 *   seq: 2161,
 *   rand: 246675845,
 *   nickname: 'bling丶一闪',
 *   sender: {
 *     user_id: 377178599,
 *     nickname: 'bling丶一闪',
 *     role: 'member',
 *     card: 'bling丶一闪'
 *   },
 *   self_id: 2796418420,
 *   message: [ { type: 'text', text: 'woc' } ],
 *   raw_message: 'woc',
 *   message_type: 'group',
 *   sub_type: 'normal',
 *   group_id: 789855336,
 *   group_name: '测试02',
 *   group: {
 *     groupCode: '789855336',
 *     maxMember: 200,
 *     memberCount: 5,
 *     groupName: '测试02',
 *     groupStatus: 0,
 *     memberRole: 3,
 *     isTop: false,
 *     toppedTimestamp: '0',
 *     privilegeFlag: 67633344,
 *     isConf: true,
 *     hasModifyConfGroupFace: false,
 *     hasModifyConfGroupName: true,
 *     remarkName: '',
 *     hasMemo: false,
 *     groupShutupExpireTime: '0',
 *     personShutupExpireTime: '0',
 *     discussToGroupUin: '0',
 *     discussToGroupMaxMsgSeq: 0,
 *     discussToGroupTime: 0,
 *     bot_id: 2796418420,
 *     group_id: 789855336,
 *     group_name: '测试02',
 *     max_member_count: 200,
 *     member_count: 5,
 *     is_admin: true,
 *     self_id: 2796418420,
 *     bot: {
 *       host: '127.0.0.1',
 *       port: '16530',
 *       token: '058afccc806321f56156b5c829634eb9f0a5d9294dd8518ef16f73c2fd68cc26',
 *       sendApi: [AsyncFunction (anonymous)],
 *       info: [Object],
 *       nickname: '小草草',
 *       self_id: 2796418420,
 *       uin: 2796418420,
 *       ws: [WebSocket],
 *       send: [Function (anonymous)]
 *     },
 *     sendMsg: [AsyncFunction: sendMsg],
 *     pickMember: [Function: pickMember],
 *     getMemberMap: [AsyncFunction: getMemberMap],
 *     recallMsg: [AsyncFunction: recallMsg],
 *     sendFile: [AsyncFunction: sendFile],
 *     getChatHistory: [AsyncFunction: getChatHistory],
 *     getInfo: [AsyncFunction: getInfo],
 *     muteMember: [AsyncFunction: muteMember],
 *     muteAll: [AsyncFunction: muteAll],
 *     kickMember: [AsyncFunction: kickMember],
 *     makeForwardMsg: [Function: makeForwardMsg]
 *   },
 *   friend: {
 *     uid: 'u_khWoERBWtXbJYav6Cw-AyA',
 *     qid: '',
 *     uin: '377178599',
 *     nick: 'bling丶一闪',
 *     remark: '',
 *     longNick: 'bilibili@bling丶一闪',
 *     avatarUrl: 'http://qh.qlogo.cn/g?b=qq&ek=AQDG1wfkxEJyyNuIZlVhgRtYAo2mBpdnBDXwrlkPL9djlw7vmP4eiaGLkzad12ktImF9awicXER10kTS5ljVYSGNPBwcbJmKoGz87icPAdplKiatHJozTyEmulhicxRu7dQ&s=',
 *     birthday_year: 2002,
 *     birthday_month: 11,
 *     birthday_day: 13,
 *     sex: 1,
 *     topTime: '0',
 *     isBlock: false,
 *     isMsgDisturb: false,
 *     isSpecialCareOpen: false,
 *     isSpecialCareZone: false,
 *     ringId: '0',
 *     status: 10,
 *     extStatus: 0,
 *     categoryId: 0,
 *     onlyChat: false,
 *     qzoneNotWatch: false,
 *     qzoneNotWatched: false,
 *     vipFlag: true,
 *     yearVipFlag: true,
 *     svipFlag: true,
 *     vipLevel: 8,
 *     bot_id: 2796418420,
 *     user_id: 377178599,
 *     nickname: 'bling丶一闪',
 *     self_id: 2796418420,
 *     bot: {
 *       host: '127.0.0.1',
 *       port: '16530',
 *       token: '058afccc806321f56156b5c829634eb9f0a5d9294dd8518ef16f73c2fd68cc26',
 *       sendApi: [AsyncFunction (anonymous)],
 *       info: [Object],
 *       nickname: '小草草',
 *       self_id: 2796418420,
 *       uin: 2796418420,
 *       ws: [WebSocket],
 *       send: [Function (anonymous)]
 *     },
 *     sendMsg: [AsyncFunction: sendMsg],
 *     recallMsg: [AsyncFunction: recallMsg],
 *     sendFile: [AsyncFunction: sendFile],
 *     getChatHistory: [AsyncFunction: getChatHistory],
 *     getFileUrl: [AsyncFunction: getFileUrl],
 *     makeForwardMsg: [Function: makeForwardMsg]
 *   },
 *   member: {
 *     bot_id: 2796418420,
 *     group_id: 789855336,
 *     nickname: 'bling丶一闪',
 *     role: 'member',
 *     user_id: 377178599,
 *     card: 'bling丶一闪',
 *     sex: 1,
 *     self_id: 2796418420,
 *     bot: {
 *       host: '127.0.0.1',
 *       port: '16530',
 *       token: '058afccc806321f56156b5c829634eb9f0a5d9294dd8518ef16f73c2fd68cc26',
 *       sendApi: [AsyncFunction (anonymous)],
 *       info: [Object],
 *       nickname: '小草草',
 *       self_id: 2796418420,
 *       uin: 2796418420,
 *       ws: [WebSocket],
 *       send: [Function (anonymous)]
 *     },
 *     info: {
 *       bot_id: 2796418420,
 *       group_id: 789855336,
 *       nickname: 'bling丶一闪',
 *       role: 'member',
 *       user_id: 377178599,
 *       card: 'bling丶一闪',
 *       sex: 'unknown',
 *       self_id: 2796418420,
 *       bot: [Object]
 *     },
 *     uid: 'u_khWoERBWtXbJYav6Cw-AyA',
 *     qid: '',
 *     uin: '377178599',
 *     nick: 'bling丶一闪',
 *     remark: '',
 *     longNick: 'bilibili@bling丶一闪',
 *     avatarUrl: 'http://qh.qlogo.cn/g?b=qq&ek=AQDG1wfkxEJyyNuIZlVhgRtYAo2mBpdnBDXwrlkPL9djlw7vmP4eiaGLkzad12ktImF9awicXER10kTS5ljVYSGNPBwcbJmKoGz87icPAdplKiatHJozTyEmulhicxRu7dQ&s=',
 *     birthday_year: 2002,
 *     birthday_month: 11,
 *     birthday_day: 13,
 *     topTime: '0',
 *     isBlock: false,
 *     isMsgDisturb: false,
 *     isSpecialCareOpen: false,
 *     isSpecialCareZone: false,
 *     ringId: '0',
 *     status: 10,
 *     extStatus: 0,
 *     categoryId: 0,
 *     onlyChat: false,
 *     qzoneNotWatch: false,
 *     qzoneNotWatched: false,
 *     vipFlag: true,
 *     yearVipFlag: true,
 *     svipFlag: true,
 *     vipLevel: 8,
 *     sendMsg: [AsyncFunction: sendMsg],
 *     recallMsg: [AsyncFunction: recallMsg],
 *     sendFile: [AsyncFunction: sendFile],
 *     getChatHistory: [AsyncFunction: getChatHistory],
 *     getFileUrl: [AsyncFunction: getFileUrl],
 *     makeForwardMsg: [Function: makeForwardMsg],
 *     kick: [AsyncFunction: kick],
 *     mute: [AsyncFunction: mute],
 *     getInfo: [AsyncFunction: getInfo],
 *     getAvatarUrl: [Function: getAvatarUrl]
 *   },
 *   pickFriend: [Function (anonymous)],
 *   pickGroup: [Function (anonymous)],
 *   pickMember: [Function (anonymous)],
 *   pickUser: [Function (anonymous)],
 *   reply: [AsyncFunction (anonymous)],
 *   toString: [Function (anonymous)],
 *   msg: 'woc',
 *   logText: '[测试02(bling丶一闪)]',
 *   isGroup: true,
 *   isMaster: true,
 *   replyNew: [Function (anonymous)],
 *   runtime: Runtime {
 *     e: [Circular *1],
 *     _mysInfo: {},
 *     handler: {
 *       has: [Function: has],
 *       call: [AsyncFunction: call],
 *       callAll: [AsyncFunction: callAll]
 *     }
 *   },
 *   user: NoteUser {
 *     _uuid: 'user:377178599',
 *     qq: 377178599,
 *     db: UserDB {
 *       dataValues: [Object],
 *       _previousDataValues: [Object],
 *       uniqno: 1,
 *       _changed: Set(0) {},
 *       _options: [Object],
 *       isNewRecord: false
 *     },
 *     mysUsers: { '272606920': [MysUser] },
 *     _games: { gs: [Object], sr: [Object] }
 *   },
 *   original_msg: 'woc',
 *   logFnc: '[留言插件][woc]',
 *   checkAuth: [AsyncFunction (anonymous)],
 *   getMysApi: [AsyncFunction (anonymous)]
 * }
 * [MiaoYz][23:
 */
